﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegisterPage.aspx.cs" Inherits="EmployeeCheckIn.RegisterPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        <BODY background="Immages/001.jpg"></BODY>
        .style1
        {
            width: 100%;
            height: 544px;
            margin-bottom: 280px;
        }
        .style2
        {
            width: 90px;
        }
        .style3
        {
            width: 90px;
            height: 22px;
        }
        .style5
        {
            width: 90px;
            height: 89px;
        }
        .style7
        {
            height: 21px;
        }
        .style8
        {
            width: 655px;
        }
        .style9
        {
            height: 22px;
            width: 655px;
        }
        .style10
        {
            height: 89px;
            width: 655px;
        }
        .style11
        {
            color: #DFDFDF;
        }
        .style12
        {
            height: 54px;
        }
        .style13
        {
            width: 90px;
            height: 26px;
        }
        .style14
        {
            width: 655px;
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style1">
        <tr>
            <td colspan="4" bgcolor="#546E96" class="style7" align="center">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                <span class="style11" style="font-size: large; text-decoration: blink">ลงทะเบียน</span></td>
        </tr>
        <tr>
            <td class="style2" bgcolor="#465767" rowspan="14">
                &nbsp;</td>
            <td class="style2">
                รหัสพนักงาน</td>
            <td class="style8">
                <asp:TextBox ID="txtEmp_code" runat="server" Width="170px" Enabled="False"></asp:TextBox>
                <asp:Label ID="lbEmpCode" runat="server" ForeColor="#993300" Text="Label" 
                    Visible="False"></asp:Label>
                <asp:HiddenField ID="hdf_EmpID" runat="server" />
            </td>
            <td bgcolor="#465767" rowspan="14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                คำนำหน้า</td>
            <td class="style8">
                <asp:RadioButtonList ID="rblPrefix" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="1">นาย</asp:ListItem>
                    <asp:ListItem Value="2">นาง</asp:ListItem>
                    <asp:ListItem Value="3">นางสาว</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                ชื่อ</td>
            <td class="style8">
                <asp:TextBox ID="txtFirstName" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbWarnName" runat="server" ForeColor="#993300" Text="Label" 
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style13">
                สกุล</td>
            <td class="style14">
                <asp:TextBox ID="txtLastname" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbWarnLastname" runat="server" ForeColor="Red" Text="Label" 
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
            </td>
            <td class="style9">
                <asp:DropDownList ID="ddlPosition" runat="server" 
                    DataSourceID="LinqDataSource1" DataTextField="POSITION_NAME" 
                    DataValueField="POSITION_CODE" Height="16px" Width="170px">
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="EmployeeCheckIn.PositionDataContext" EntityTypeName="" 
                    Select="new (POSITION_NAME, POSITION_CODE)" TableName="TBL_POSITIONs">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2">
                วันเริ่มทำงาน</td>
            <td class="style8">
                <asp:TextBox ID="txtStartdate" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbStdate" runat="server" ForeColor="Red" Text="Label" 
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style13">
                วันเกิด</td>
            <td class="style14">
                <asp:TextBox ID="txtBirthDate" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbWarnBirth" runat="server" ForeColor="Red" Text="Label" 
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                รหัสประชาชน</td>
            <td class="style8">
                <asp:TextBox ID="txtIdCard" runat="server" Width="170px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
                ที่อยู๋</td>
            <td class="style10">
                <asp:TextBox ID="txtAddress" runat="server" Height="75px" TextMode="MultiLine" 
                    Width="227px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                จังหวัด</td>
            <td id="ddlPosition" class="style8">
                <asp:DropDownList ID="ddlProvince" runat="server" 
                    DataSourceID="LinqDataSource2" DataTextField="PROVINCE_NAME" 
                    DataValueField="PROVINCE_CODE" Height="16px" Width="170px">
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
                    ContextTypeName="EmployeeCheckIn.ProvinceDataContext" EntityTypeName="" 
                    Select="new (PROVINCE_CODE, PROVINCE_NAME)" TableName="TBL_PROVINCEs">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2">
                รหัสไปรษณีย์</td>
            <td class="style8">
                <asp:TextBox ID="txtPostId" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbWarnPost" runat="server" ForeColor="Red" Text="Label" 
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                โทร</td>
            <td class="style8">
                <asp:TextBox ID="txtTel" runat="server" Width="170px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left" class="style8">
                <asp:Button ID="btRegister" runat="server" style="margin-left: 187px" 
                    Text="Submit" Width="81px" onclick="btRegister_Click" />
&nbsp;<asp:Button ID="Button1" runat="server" style="margin-left: 43px; height: 26px;" Text="Cancle" 
                    Width="81px" onclick="Button1_Click" />
            </td>
        </tr>
        <tr>
            <td class="style12" bgcolor="#546E96" colspan="2">
                </td>
        </tr>
    </table>
</asp:Content>
